package org.yournamehere.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.RootPanel;
//import com.google.gwt.gwtai.applet.client.Applet;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.Image;




/**
 *
 * @author sang
 */
public class MainEntryPoint implements EntryPoint {
    //Image w = new Image();
    /** Creates a new instance of MainEntryPoint */
    public MainEntryPoint() {
        //GWT.create(Applet.class);

    }

    /**
     * The entry point method, called automatically by loading a module
     * that declares an implementing class as an entry-point
     */
    public void onModuleLoad() {
        //final Label label = new Label("Hello, GWT!!!");
        //final Button button = new Button("Click me!");
        //javax.imageio.ImageReader read;
        //Image img = new Image();
        //img.set

        // The GWTServiceUsageExample is a VerticalPanel object,
        //  the constructor of which performs RPC operation with the server.
        GWTServiceUsageExample rpcCallingPanel = new GWTServiceUsageExample();
        
        //HTML page = new HTML();
        
        
        //String html = "<APPLET src=\"/applets/MyApplet.class\" etc />";
        //RootPanel.get().add(page);
        
        //Image img = new Image("C://Users//Nick//Desktop//chart.jpg");
        //RootPanel.get("image").add(img);
        //button.addClickHandler(new ClickHandler(){
         /*onClick(ClickEvent event) {
              label.setVisible(!label.isVisible());
        }*/
        //});

        //RootPanel.get().add(button);
        //RootPanel.get().add(label);

        // Add the GWTServiceUsageExample to the panel
        // so that you can test it.




        //RootPanel.get().add(img);
        RootPanel.get().add(rpcCallingPanel);

    }

}
